const app = getApp()
const db = wx.cloud.database()
Page({

  data: {
    StatusBar: app.globalData.StatusBar,
    CustomBar: app.globalData.CustomBar,
    contactlist:[]
  },

 
  onLoad: function (options) {
    
  },

  bindKeyInput: function (event) {
    const name = event.detail.value
    db.collection('contact').where({
      searchfeild: db.RegExp({
        regexp: name,
        options: 'i',
      })
    }).get().then(res => {
      this.setData({
        contactCur: res.data
      })
    })
  }

})